package com.tinem.platform.module.starter.jms.consumer;

/**
 * @author fengzhihao
 * @version v1
 * @program: platform
 * @className SubscribeListener
 * @description TODO
 * @site
 * @company
 * @create 2021/12/1 10:29:44
 */
public interface SubscribeListener<T> extends java.lang.Comparable{
    /**
     * 订阅消息处理
     * @param message 消息
     */
    void call(T message);

    @Override
    default int compareTo(Object o){
        if(this == o){
            return 0;
        }else {
            return 1;
        }
    }

}
